wayland: Move move_to_rect related code closer together
authorJonas Ådahl <jadahl@gmail.com>
Mon, 12 Sep 2016 06:53:51 +0000 (14:53 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 14 Sep 2016 03:29:32 +0000 (11:29 +0800)
commite656a14764f409aaf1e7cc127188b8bdc67bbd7d
tree9d5ccb669c1799beccf5d437a8ed62c4a0efbef5
parent0b07884587efd37fbb781cd3dec4bfaa01c8b051
wayland: Move move_to_rect related code closer together

Move the code used for calculating the result of move_to_rect
(final_rect, flipped_rect etc) closer to the other move_to_rect
functions (i.e. next to create_dynamic_positioner), and let the
xdg_popup configure handler just call the calculation function.

https://bugzilla.gnome.org/show_bug.cgi?id=771117
gdk/wayland/gdkwindow-wayland.c